<?php
require_once("configuration.php");

function IsValidSession($acc_id,$token)
{
     return true;
}

class mysql
{   
    var $server;
    var $conn_username;
    var $conn_password;
    var $database_name;
    var $connection;
    var $select;
    var $query;

    
    function connect()
 {  $sett= new JConfig();
 	
    $connection = mysql_connect($sett->host,$sett->user,$sett->password);
    $select = mysql_select_db($sett->db,$connection);
}
    function query($query)
    {
        $result = mysql_query($query);
        if (!$result)
         {
            return 'Could not run query: ' . mysql_error();
            exit;
         }
         return  $result;
    }
} 